﻿@*@model IEnumerable<Infinity.BusinessLayer.CourseList>*@
@model IPagedList<Infinity.BusinessLayer.CourseList>
@using PagedList;
@using PagedList.Mvc;

@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Managerial/Views/Shared/_AdminLayout.cshtml";
}


<section class="course-form">
    <h2> <strong>Course</strong></h2> 
    @using (Html.BeginForm("Index", "Course", FormMethod.Post))
    {
        <b>Seaech By:</b> @Html.RadioButton("searchBy", "name", true) <text>Course Name</text>
    
        @Html.RadioButton("searchBy", "Official_crs_hrs") <text>Number of hours</text>
        @Html.RadioButton("searchBy", "Exam") <text>Exam</text>
         @Html.RadioButton("searchBy", "Material") <text>Material</text>
         @Html.RadioButton("searchBy", "Certificate") <text>Certificate</text>
        
        <br />
        @Html.TextBox("searchfor") <input type="submit" value="Search" />
    }
    <br />
    <div>
        <p>
            @Html.ActionLink("Create new Course", "NewCourse", null, new { @class = "send" })
        </p>
    </div>
    <div id="CourseContainer">
            @{ Html.RenderPartial("_CourseList", Model);}
    </div>
</section>

